﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Toulr.Util;

/// <summary>
/// 通用Ajax方法类
/// </summary>
public class CommAjaxHelper
{
    public CommAjaxHelper()
    {
        //
        // TODO: Add constructor logic here
        //

    }

    [AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)]
    public bool IsCorrectVerifyCode(string code)
    {
        return PageHelper.IsCorrectVerifyCode(code);
    }


    [AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)]
    public string GetIPLocationInfo(string code)
    {
        IPLocation location = PageHelper.GetIPLocationInfo();
        return location.country + "," + location.area;
    }

}